
package com.cmc.dao;

import java.util.List;

import com.cmc.dao.Dao;
import com.cmc.model.Place;

public interface PlaceDao extends Dao {

    /**
     * Retrieves all of the places
     */
    public List getPlaces(Place place);

    /**
     * Gets place's information based on primary key. An
     * ObjectRetrievalFailureException Runtime Exception is thrown if 
     * nothing is found.
     * 
     * @param id the place's id
     * @return place populated place object
     */
    public Place getPlace(final Long id);

    /**
     * Saves a place's information
     * @param place the object to be saved
     */    
    public void savePlace(Place place);

    /**
     * Removes a place from the database by id
     * @param id the place's id
     */
    public void removePlace(final Long id);
}

